﻿#ifndef GAMEWORLD_H
#define GAMEWORLD_H

#pragma execution_character_set("utf-8")
#include "btosgVehicle.h"
#include <osgViewer/Viewer>

#include <osgUtil/SmoothingVisitor>

#include <osg/Camera>
#include <osg/MatrixTransform>
#include <osgDB/ReadFile>
#include <osgGA/KeySwitchMatrixManipulator>
#include <osgGA/TrackballManipulator>
#include <osgGA/NodeTrackerManipulator>
#include "btosgmycar.h"
class GameWorld
{
public:
    GameWorld();
    ~GameWorld();

    osg::ref_ptr<osgGA::TrackballManipulator> manipulator;
    osg::ref_ptr<osgGA::NodeTrackerManipulator> manipulator1;
    btosgWorld *myWorld;
//    btosgVehicle *myVehicle;
    btosgMyCar *myVehicle;
    osgViewer::Viewer *viewer;


    static GameWorld *getHandle();
    static GameWorld * _obj;
    void setViewer(osgViewer::Viewer * _viewer);
    void update();
};

#endif // GAMEWORLD_H
